@extends('app')
@section('content')
  <div class="table-responsive post">
    <table class="table table-hover">
      <tbody>
      	@foreach ($categorys as $category)
        <tr>
          <th scope="row">{{ $category->id }}</th>
          <td>{{ $category->category_name }}</td>
          <td>
          	<a href="{{ url('category/edit',$category->id) }}">Edit</a>
			<a href="{{ url('category/delete',$category->id) }}">Delete</a>
          </td>
        </tr>
        @endforeach
      </tbody>
    </table>
  </div>
  {!! $categorys->render() !!}
@endsection
